home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
source
/
swagd-f
/
drives.swg
/
0052_Detecting CD-ROM.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1993-11-02
|
457 b
|
27 lines
{
WIM VAN VOLLENHOVEN
>No, I'm looking for an generic CD-ROM detection routine.
>Thought it was some subfunction of int 2Fh. Don't know if it detected
>the presence of a CD-Rom, or the presence of MSCDEX.
}
Uses
Dos;
Var
Regs : Registers;
Procedure IsCDRom;
begin
Regs.AX := $1500;
Regs.BX := $0000;
Regs.CX := $0000;
Intr( $2F, Regs);
writeln('CD Available : ', (Regs.BX > 0));
end;
begin
IsCDRom;
end.